package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * <p>
 * 开团记录
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-11
 */
@TableName("t_pintuan_open")
public class PintuanOpen extends Model<PintuanOpen> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 拼团id
     */
	private Long ptid;
    /**
     * 商品id
     */
	private Long gid;

	private Long oid;

	private Long uid;
	@JsonIgnore
	private Long mid;
	@JsonIgnore
	private Long mpid;
    /**
     * 手机号
     */
	private String phone;
    /**
     * 昵称
     */
	private String nickname;
	private String avatarpic;

	private String info;

	@TableField(exist = false)
	private String goodsName;

	@TableField(exist = false)
	private String pic;

	@TableField(exist = false)
	private Long ShowCountdownMilliseconds;

    /**
     * 业务状态@1:未开启;2:进行中;3:拼团成功;4:拼团失败
     */
	private Integer status;
	private Integer state;

	@TableField("is_groups")
	private Integer isGroups;

	private Integer xuni;

    /**
     * 开团时间
     */
	private Date starttime;
    /**
     * 结束时间
     */
	private Date endtime;
    /**
     * 开团设置总人数
     */
	private Integer ptotal;
    /**
     * 已参团人数
     */
	private Integer pnumber;
    /**
     * 原始价格
     */
	private BigDecimal price;
    /**
     * 拼团价格
     */
	private BigDecimal pinprice;
    /**
     * 拼团优惠
     */
	private BigDecimal cheapprice;
    /**
     * 拼团成功时间
     */
	private Date successtime;
	@JsonIgnore
	private Date createtime;
	@JsonIgnore
	private Date modifytime;
	@JsonIgnore
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPtid() {
		return ptid;
	}

	public void setPtid(Long ptid) {
		this.ptid = ptid;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Integer getIsGroups() {
		return isGroups;
	}

	public void setIsGroups(Integer isGroups) {
		this.isGroups = isGroups;
	}

	public Integer getPtotal() {
		return ptotal;
	}

	public void setPtotal(Integer ptotal) {
		this.ptotal = ptotal;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Integer getPnumber() {
		return pnumber;
	}

	public void setPnumber(Integer pnumber) {
		this.pnumber = pnumber;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getPinprice() {
		return pinprice;
	}

	public void setPinprice(BigDecimal pinprice) {
		this.pinprice = pinprice;
	}

	public BigDecimal getCheapprice() {
		return cheapprice;
	}

	public void setCheapprice(BigDecimal cheapprice) {
		this.cheapprice = cheapprice;
	}

	public Date getSuccesstime() {
		return successtime;
	}

	public void setSuccesstime(Date successtime) {
		this.successtime = successtime;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Long getShowCountdownMilliseconds() {
		return ShowCountdownMilliseconds;
	}

	public void setShowCountdownMilliseconds(Long showCountdownMilliseconds) {
		ShowCountdownMilliseconds = showCountdownMilliseconds;
	}

	public String getAvatarpic() {
		return avatarpic;
	}

	public void setAvatarpic(String avatarpic) {
		this.avatarpic = avatarpic;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Integer getXuni() {
		return xuni;
	}

	public void setXuni(Integer xuni) {
		this.xuni = xuni;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PintuanOpen{" +
			"id=" + id +
			", ptid=" + ptid +
			", gid=" + gid +
			", uid=" + uid +
			", phone=" + phone +
			", nickname=" + nickname +
			", status=" + status +
			", starttime=" + starttime +
			", endtime=" + endtime +
			", ptotal=" + ptotal +
			", price=" + price +
			", successtime=" + successtime +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
